* {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.box {
    background: #232429;
    position: relative;
    font-size: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.title {
    margin: 0 auto 20px;
}

.clip-img {
    width: 100%;
}

#drag {
    background: transparent;
    position: absolute;
    z-index: 10000;
    user-select: none;
    border: 1px dashed #fff;
    box-sizing: border-box;
    cursor: move;
}

.dot-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.dot {
    position: absolute;
    z-index: 10001;
    width: 10px;
    height: 10px;
    background: #fff;
    box-sizing: border-box;
    border: 1px solid #767676;
    user-select: none;
}
.up {
    cursor: n-resize;
    left: calc(50% - 5px);
    top: -5.5px;
}

.down {
    cursor: s-resize;
    left: calc(50% - 5px);
    bottom: -5.5px;
}

.left {
    cursor: w-resize;
    left: -5.5px;
    top: calc(50% - 5px);
}

.right {
    cursor: e-resize;
    right: -5.5px;
    top: calc(50% - 5px);
}

.left-up {
    cursor: nw-resize;
    top: -5.5px;
    left: -5.5px;
}

.right-up {
    cursor: ne-resize;
    top: -5.5px;
    right: -5.5px;
}

.left-down {
    cursor: sw-resize;
    bottom: -5.5px;
    left: -5.5px;
}

.right-down {
    cursor: se-resize;
    bottom: -5.5px;
    right: -5.5px;
}

.btn-box {
    margin-top: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.clip-btn {
    width: 100%;
    line-height: 40px;
    font-size: 16px;
    background: rgb(85, 189, 59);
    text-align: center;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    opacity: .9;
}
.clip-btn:active {
    opacity: 1 !important;
}
.clip-btn:hover {
    opacity: .8;
}

.loading {
    width: 100vw;
    height: 100vh;
    color: #000;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000000;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}